Monadic Expressions and their Derivatives
نویسندگان
چکیده
We propose another interpretation of well-known derivatives computations from regular expressions, due to Brzozowski, Antimirov or Lombardy and Sakarovitch, in order abstract the underlying data structures (e.g. sets linear combinations) using notion monad. As an example this generalization advantage, we introduce a new derivation technique based on graded module also extend operators defining expressions any n-ary functions over value sets, such as classical operations (like negation intersection for Boolean weights) more exotic ones algebraic mean rational weights). Moreover, present how compute (non-necessarily finite) automaton extended expression, Colcombet Petrisan categorical definition automata. These category theory concepts allow us perform construction unified way, whatever Finally, illustrate our work, Haskell implementation these notions advanced techniques functional programming, provide web interface manipulate concrete examples.
منابع مشابه
Constrained Expressions and their Derivatives
First order logic without quantifiers, a.k.a. zeroth order logic, is more expressive than propositional logic. In this paper, we introduce two new operators for regular expressions allowing us to handle zeroth order boolean formula in order to increase the expressive power of expressions; We also extend the notion of interpretation and of realization using expression interpretation. We thus def...
متن کاملDerivatives of Regular Expressions ∗
The paper proposes a characterization of the structure of derivatives, and proves several properties of derivatives. The above work can be used to solve an issue in using Berry and Sethi’s result, i. e., finding the unique representatives of derivatives. keywords: Regular expressions, derivatives, finite automata.
متن کاملKz-monadic Categories and Their Logic
Given an order-enriched category, it is known that all its KZ-monadic subcategories can be described by Kan-injectivity with respect to a collection of morphisms. We prove the analogous result for Kan-injectivity with respect to a collection H of commutative squares. A square is called a Kan-injective consequence of H if by adding it to H Kan-injectivity is not changed. We present a sound logic...
متن کاملTwo-Sided Derivatives for Regular Expressions and for Hairpin Expressions
The aim of this paper is to design the polynomial construction of a finite recognizer for hairpin completions of regular languages. This is achieved by considering completions as new expression operators and by applying derivation techniques to the associated extended expressions called hairpin expressions. More precisely, we extend partial derivation of regular expressions to two-sided partial...
متن کاملDerivatives and Partial Derivatives for Regular Shuffle Expressions
There is a rich variety of shuffling operations ranging from asynchronous interleaving to various forms of synchronizations. We introduce a general shuffling operation which subsumes earlier forms of shuffling. We further extend the notion of a Brzozowski derivative and a Antimirov partial derivative to the general shuffling operation and thus to many earlier forms of shuffling. This extension ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Electronic proceedings in theoretical computer science
سال: 2022
ISSN: ['2075-2180']
DOI: https://doi.org/10.4204/eptcs.367.4